package main

import "fmt"

type P1 struct {
	name int
	age int
}
type P2 struct {
	name int
	age int
}

//结构体的比较只能是同一个类型的进行比较，并且比较的是各个成员属性的值
func main() {
	p1 := P1{
		name: 11,
		age:  10,
	}
	p2 := P1{
		name: 11,
		age:  10,
	}

	if p1 == p2 {
		fmt.Println("they are the same")
	}
}